package com.hnchances.domain.result;

public enum CodeEnum implements Code{
    TOW_OK(200,"成功"),
    FOUR_ERROR(400,"业务异常"),
    FIVE_ERROR(500,"接口异常");



    private final int code;
    private final String msg;

     CodeEnum(int code, String msg){
        this.code=code;
        this.msg=msg;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
